#include <iostream>
#include <memory>
using namespace std;

//智能指针

void zhi_neng_pointer()
{
	//double *p = new double(45.123);

	//必须要delete
	//delete(p);

	//智能指针,不用手动释放
	std::unique_ptr<double> p(new double(5.2));

	cout << *p<< endl;

}


void main7()
{
	zhi_neng_pointer();
	cin.get();
}